package com.zy.openchat.core.model.message;

import android.os.Parcel;
import android.os.Parcelable;

public class BurnAfterReadInfo implements Parcelable {

    public String text;
    public int countDown;


    public BurnAfterReadInfo(String text, int countDown) {
        this.text = text;
        this.countDown = countDown;
    }



    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.text);
        dest.writeInt(this.countDown);
    }

    public void readFromParcel(Parcel source) {
        this.text = source.readString();
        this.countDown = source.readInt();
    }

    public BurnAfterReadInfo() {
    }

    protected BurnAfterReadInfo(Parcel in) {
        this.text = in.readString();
        this.countDown = in.readInt();
    }

    public static final Creator<BurnAfterReadInfo> CREATOR = new Creator<BurnAfterReadInfo>() {
        @Override
        public BurnAfterReadInfo createFromParcel(Parcel source) {
            return new BurnAfterReadInfo(source);
        }

        @Override
        public BurnAfterReadInfo[] newArray(int size) {
            return new BurnAfterReadInfo[size];
        }
    };
}
